{extend name='template/base'}{/extend}
{block name='style'}{/block}
{block name='script'}{/block}
{block name='content'}
<div class="wrapper">
    <form class="form-horizontal" id="form" action="{:url('ShopDelivery/update')}">
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名</label>
                <div class="col-sm-6">
                    <input type="hidden" name="store_id" value="{$data.store_id}">
                    <input type="hidden" name="account_id" value="{$data.account_id}">
                    <input class="form-control" type="text" name="account_name" value="{$data.account_name}">
                </div>
                <div class="col-sm-3"></div>
            </div>
            <!--<div class="form-group">-->
                <!--<label class="col-sm-3 control-label">店铺名称</label>-->
                <!--<div class="col-sm-6">-->
                    <!--<select class="form-control required" name='new_store_id' datatype="*">-->
                        <!--{volist name="delivery_list" id="vo"}-->
                        <!--<option value="{$vo.id}" {if $vo.id eq $data.store_id}selected{/if}>{$vo.name}</option>-->
                        <!--{/volist}-->
                    <!--</select>-->
                <!--</div>-->
                <!--<div class="col-sm-3"></div>-->
            <!--</div>-->

            <div class="form-group">
                <label class="col-sm-3 control-label">微信号</label>
                <div class="col-sm-6">
                    <input class="form-control" type="text" name="wechat" value="{$data.wechat}">
                </div>
                <div class="col-sm-3"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电话</label>
                <div class="col-sm-6">
                    <input class="form-control" type="text" name="mobile" value="{$data.mobile}">
                </div>
                <div class="col-sm-3"></div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-9 col-sm-offset-3">
                <button type="submit" class="btn btn-primary">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
                <button type="button" class="btn btn-default radius ml-20" onclick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>

</form>
</div>
{/block}
{block name='script_extra'}

<script>
    $("#form").Validform({
        tiptype:2,
        showAllError:true,
        ajaxPost: true,
        callback: function (res) {
            if (res.success == true){
                layer.msg(res.message, {time: 1000},function () {
                    layer_close();
                    parent.$('#table').bootstrapTable('refresh');
                });
            }else{
                layer.alert(res.message);
            }
        }
    });
</script>
{/block}